// src/store/chat.js
import { reactive } from 'vue'

const sessionMetaMap = reactive({})

export function useChatStore() {
  // 设置会话元信息
  function setSessionMeta(sessionId, meta) {
    sessionMetaMap[sessionId] = { ...(sessionMetaMap[sessionId] || {}), ...meta }
  }
  // 获取会话元信息
  function getSessionMeta(sessionId) {
    return sessionMetaMap[sessionId] || {}
  }
  return {
    setSessionMeta,
    getSessionMeta
  }
} 